<?php
/* @var $this ShoeController */
/* @var $model Shoe */
/* @var $form CActiveForm */
?>

<div class="content-box">
<div class="content-box-header">
        <h3>Content box</h3>
        <ul class="content-box-tabs">
          <li><a href="#tab1" class="default-tab">表单</a></li>
          <!-- href must be unique and match the id of target div -->
        </ul>
        <div class="clear"></div>
 </div>
 <div class="content-box-content">
        <div class="tab-content default-tab" id="tab1">
			<?php $form=$this->beginWidget('CActiveForm', array(
				'id'=>'shoe-form',
				// Please note: When you enable ajax validation, make sure the corresponding
				// controller action is handling ajax validation correctly.
				// There is a call to performAjaxValidation() commented in generated controller code.
				// See class documentation of CActiveForm for details on this.
				'enableAjaxValidation'=>false,
			)); ?>
			
			 <fieldset>
				<p class="note">Fields with <span class="required">*</span> are required.</p>
			
				<?php echo $form->errorSummary($model); ?>
			
				<div class="row">
					<?php echo $form->labelEx($model,'shoe_suk'); ?>
					<?php echo $form->textField($model,'shoe_suk',array( 'class' => 'text-input small-input')); ?>
					<?php echo $form->error($model,'shoe_suk'); ?>
				</div>
			
				<div class="row">
					<?php echo $form->labelEx($model,'item_cover'); ?>
					<?php echo $form->textField($model,'item_cover',array('size'=>60,'maxlength'=>200)); ?>
					<?php echo $form->error($model,'item_cover'); ?>
				</div>
			
				<div class="row">
					<?php echo $form->labelEx($model,'shoe_content'); ?>
					<?php echo $form->textArea($model,'shoe_content',array('rows'=>6, 'cols'=>50)); ?>
					<?php echo $form->error($model,'shoe_content'); ?>
				</div>
				
				<?php echo $form->hiddenField($model,'item_author',array('type'=>"hidden" , 'value'=>"0")); ?>
				<?php echo $form->error($model,'item_author'); ?>
				
			
				<div class="row">
					<?php echo $form->labelEx($model,'item_date'); ?>
					<?php echo $form->textField($model,'item_date'); ?>
					<?php echo $form->error($model,'item_date'); ?>
				</div>
			
				<div class="row">
					<?php echo $form->labelEx($model,'item_title'); ?>
					<?php echo $form->textArea($model,'item_title',array('rows'=>6, 'cols'=>50)); ?>
					<?php echo $form->error($model,'item_title'); ?>
				</div>
			
				<div class="row">
					<?php echo $form->labelEx($model,'item_password'); ?>
					<?php echo $form->textField($model,'item_password',array('size'=>20,'maxlength'=>20)); ?>
					<?php echo $form->error($model,'item_password'); ?>
				</div>
			
				<div class="row">
					<?php echo $form->labelEx($model,'item_modified'); ?>
					<?php echo $form->textField($model,'item_modified'); ?>
					<?php echo $form->error($model,'item_modified'); ?>
				</div>
			
				<div class="row">
					<?php echo $form->labelEx($model,'item_parent'); ?>
					<?php
					$list = CHtml::listData(Categories::model()->findAll(array('order' => 'id')), 'id', 'name');
					echo $form->dropDownList($model,'item_parent',$list);
					 ?>
					<?php echo $form->error($model,'item_parent'); ?>
				</div>
			
				<div class="row buttons">
					<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
				</div>
			</fieldset>
			<?php $this->endWidget(); ?>
	</div>
</div>
</div>